package com.shiftl.data.aroma.dao;

public class DAOFactory {
	public static <T> T newDAO(final Class<T> clazz) {
		try {
			return clazz.newInstance();
		} catch (final InstantiationException e) {
			throw new RuntimeException("could not instatiate DAO class " + clazz, e);
		} catch (final IllegalAccessException e) {
			throw new RuntimeException("could not instatiate DAO class " + clazz, e);
		}
	}
}
